project(
  themes_manager
  LANGUAGES CXX
)

set(CMAKE_CXX_STANDARD 17)
find_package(Qt5 COMPONENTS Widgets Core REQUIRED)

add_definitions(-DQLS_THEMES_MANAGER_LIBRARY)

set(_srcs
    src/qls_themes_manager.cpp
)

set(_headers
    include/themes_manager/qls_themes_manager.h
    include/themes_manager/qls_themes_manager_global.h
)

add_library(themes_manager SHARED ${_srcs} ${_headers})
target_link_libraries(themes_manager PUBLIC
    Qt5::Widgets Qt5::Core ${CMAKE_THREAD_LIBS_INIT}
)
target_link_libraries(themes_manager PRIVATE
    settings
)
target_include_directories(themes_manager PUBLIC include)
